#99乘法表
#for in循环_1：'''
for i in range(1,10):
    for j in range(1,i+1):
        print('{}*{}={:<3}'.format(j,i,j*i),end=' ')
    print('')
    
print('')
print('+'*50)
print('')
#=============================
#for in循环_2：
for i in range(9,0,-1):
    for j in range(1,i+1):
        print('{}*{}={:<3}'.format(j,i,j*i),end=' ')
    print('')

print('')
print('+'*50)
print('')
#=============================
#for in循环_3：
for i in range(9,0,-1):
    for m in range(1,i):
        print(' '*8,end='')
    for j in range(i,10):
        print('{}*{}={:<3}'.format(i,j,j*i),end=' ')
    print('')

print('')
print('*'*50)
print('')
#=============================
#for in循环_4：
for i in range(1,10):
    for m in range(1,i):
        print(' '*8, end='')
    for j in range(i,10):
    #for j in range(1,10):
        print('{}*{}={:<3}'.format(i,j,j*i),end=' ')
    print('')
    
print('')
print('*'*50)
print('')
#=============================


#=============================
#while 循环_1:
i=1
while i <10:
    j=1
    while j<=i:
        print('{}*{}={:<3}'.format(j,i,j*i), end=' ')
        j+=1
    i+=1
    print('')
    
print('')
print('+'*50)
print('')
#=============================
#while 循环_2:
i=9
while i > 0:
    j=1
    while j<=i:
        print('{}*{}={:<3}'.format(j,i,j*i), end=' ')
        j+=1
    i-=1
    print('')
    
print('')
print('+'*50)
print('')
#=============================
#while 循环_3:
i = 9
while i >= 1:
    k=i-1
    while k>0:
        print(' '*8,end='')
        k-=1
    j=i
    while j<=9:
        print('{}*{}={:<3}'.format(i,j,j*i),end=' ')
        j+=1
    print('')
    i-=1

print('')
print('+'*50)
print('')
#=============================
#while 循环_4:
i = 1
while i <= 9:
    k = i-1
    while k > 0:
        print(' '*8, end='')
        k -= 1
    j = i
    while j <= 9:
        print('{}*{}={:<3}'.format(i,j,i*j),end=' ')
        j += 1  
    print('')
    i += 1


print('')
print('+'*50)
print('')
#=============================


